﻿package we3d.animation 
{
	/**
	* @private
	* The KeyFrame class is only a internal class, all properties are Read Only <br/>
	* Use the <code>EnvelopeChannel.storeFrame</code> method to create a new Keyframe or
	* <code>EnvelopeChannel.moveKeyframe</code> to change a keyframe's position
	*/
	public class KeyFrame 
	{
		public function KeyFrame (_frame:Number=1, _value:Number=0, ease_def:*=null) {
			frame = _frame;
			value = _value;
			if(typeof ease_def == "function") easeFunc = ease_def;
		}
		
		/** 
		* Read Only, Frame number of the Keyframe 
		*/
		public var frame:Number;
		/**
		* Read Only, Frame value of the Keyframe 
		*/
		public var value:Number;
		/** 
		* Function for easing
		*/
		public var easeFunc:Function;
	}
}